﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Toolkit.Web.ViewComponents;
using Toolkit.Web.Infastructure;

namespace Toolkit.Web.Examples.Button
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack && Request["action"] == "cancel")
            {
                throw new Exception("Cancelled! (press back button)");
            }
        }
    }
}